class Student:
    name = "张三"

    @classmethod
    def test(cls):
        print(cls.name)
        cls.name = "李四"
        print(cls.name)

s = Student()
Student.test()
s.test()